package com.server.impl;

import java.util.List;

import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.dao.LiuyanxinxiMapper;
import com.entity.Liuyanxinxi;
import com.server.LiuyanxinxiServer;
@Service
public class LiuyanxinxiServerImpi implements LiuyanxinxiServer {
   @Resource
   private LiuyanxinxiMapper gdao;
	@Override
	public int add(Liuyanxinxi po) {
		return gdao.insert(po);
	}

	@Override
	public int update(Liuyanxinxi po) {
		return gdao.updateByPrimaryKeySelective(po);
	}

	@Override
	public int updatelb(Liuyanxinxi po) {
		return gdao.updateByPrimaryKeySelectivelb(po);
	}
	
	@Override
	public int delete(int id) {
		return gdao.deleteByPrimaryKey(id);
	}

	@Override
	public List<Liuyanxinxi> getAll(Map<String, Object> map) {
		return gdao.getAll(map);
	}
	
	public List<Liuyanxinxi> getsyliuyanxinxi1(Map<String, Object> map) {
		return gdao.getsyliuyanxinxi1(map);
	}
	public List<Liuyanxinxi> getsyliuyanxinxi2(Map<String, Object> map) {
		return gdao.getsyliuyanxinxi2(map);
	}
	public List<Liuyanxinxi> getsyliuyanxinxi3(Map<String, Object> map) {
		return gdao.getsyliuyanxinxi3(map);
	}
	
	@Override
	public Liuyanxinxi quchongLiuyanxinxi(Map<String, Object> account) {
		return gdao.quchongLiuyanxinxi(account);
	}

	@Override
	public List<Liuyanxinxi> getByPage(Map<String, Object> map) {
		return gdao.getByPage(map);
	}

	@Override
	public int getCount(Map<String, Object> map) {
		return gdao.getCount(map);
	}

	@Override
	public List<Liuyanxinxi> select(Map<String, Object> map) {
		return gdao.select(map);
	}

	@Override
	public Liuyanxinxi getById(int id) {
		return gdao.selectByPrimaryKey(id);
	}

}

